/*
 * @Author: your name
 * @Date: 2022-03-25 16:44:52
 * @LastEditTime: 2022-03-25 16:59:48
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \blog-system-front\src\Pages\success\index.js
 */
import React from "react";
import { Result, Button } from "antd";
import { fetchArticleDetail } from "../../Services/article";
export default function submitSucces(props) {
  const { articleid } = props.match.params;
  return (
    <Result
      status="success"
      title="博客已经成功发布"
      extra={[
        <Button
          type="primary"
          key="console"
          onClick={() => {
            props.history.push(`/article/write/${articleid}`);
          }}
        >
          查看详情
        </Button>,
        <Button
          key="buy"
          onClick={() => {
            props.history.push(`/article/write/new`);
          }}
        >
          再来一篇
        </Button>,
      ]}
    />
  );
}
